using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string view = Request.QueryString["view"];
        Session["view"] = view;
        if (view == "Accounts")
        {
            Control c = Page.LoadControl("UIControls/Accounts.ascx");
            loadControl.Controls.Add(c);
        }
        else if (view == "Summary")
        {
            Control c = Page.LoadControl("UIControls/Summary.ascx");
            loadControl.Controls.Add(c);
        }
        else if (view == "Feedbacks")
        {
            Control c = Page.LoadControl("UIControls/Feedbacks.ascx");
            loadControl.Controls.Add(c);
        }
        else if (view == "Logs")
        {
            Control c = Page.LoadControl("UIControls/Logs.ascx");
            loadControl.Controls.Add(c);
        }
        else if (view == "Roles")
        {
            Control c = Page.LoadControl("UIControls/Roles.ascx");
            loadControl.Controls.Add(c);
        }
        else if (view == "Categories")
        {
            Control c = Page.LoadControl("UIControls/Categories.ascx");
            loadControl.Controls.Add(c);
        }
        else
        {
            Session["view"] = "Summary";
            Control c = Page.LoadControl("UIControls/Summary.ascx");
            loadControl.Controls.Add(c);
        }
    }
}
